<template>
 <div>
    <div class="mh100vh auto w30  mh100vh bgf5">
      <Button class="mb10" type="primary" @click="print">打印</Button>
      <div class="printDom f bg1890ff gf mt10">
        <div class="">姓名：</div>
        <div class="f1">张三</div>
      </div>
      <div class="abs t0 r0" style="width:240px;" id="imgBox">
        <div>截图生成的图片在下面直观显示</div>
      </div>
    </div>
 </div>
</template>
<script src='./index.js'></script>
<style src='./index.css' scoped></style>